﻿@model Planisoft.Entities.ConfiguraTrabajador

@{
    ViewBag.Title = "Create";
}

<h2>Create</h2>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>ConfiguraTrabajador</legend>
        <fieldset style="width:50%" > <legend>Trabajador :</legend> 
            
        <div class="editor-field">
            @Html.DropDownList("IdTrabajador")
            @Html.ValidationMessageFor(model => model.IdTrabajador)
        </div>
        
        </fieldset>
        
        <fieldset> <legend>Configuraciones</legend>
        
        <fieldset style="width:50%; float:left; margin-right: 15px;"> <legend>S.C.T.R.</legend> 
            <fieldset style="width:auto; float:left; "> <legend>Salud</legend>
                <div class="editor-field">
                    @Html.RadioButtonFor(model => model.IndEps,"S",true)ESSALUD                    
                    @Html.RadioButtonFor(model => model.IndEps,"E",false)EPS
                    @Html.ValidationMessageFor(model => model.IndEps)
                </div>
                <div class="editor-label">
                    @Html.Label("EPS")
                </div>
                <div class="editor-field">
                    @Html.DropDownList("IdEps")
                    @Html.ValidationMessageFor(model => model.IdEps)
                </div>
            </fieldset>
            <fieldset style="width:auto; float:left; "> <legend>Pensión</legend>
                <div class="editor-field">
                     @Html.RadioButtonFor(model => model.SctrPension,"N",true)Ninguno
                     @Html.RadioButtonFor(model => model.SctrPension,"O",true)ONP
                     @Html.RadioButtonFor(model => model.SctrPension,"P",false)Privado
                     @Html.ValidationMessageFor(model => model.SctrPension)  
                </div>                
            </fieldset>
        </fieldset> 

        <div class="editor-label">
            @Html.Label("Tipo Trabajador")
        </div>
        <div class="editor-field">
            @Html.DropDownList("IdTipoTrabajPension")
            @Html.ValidationMessageFor(model => model.IdTipoTrabajPension)
        </div>

        <div class="editor-label" hidden="hidden" >
            @Html.LabelFor(model => model.RegLaboral)
        </div>
        <div class="editor-field" hidden="hidden">
            <input id="RegLaboral" class="text-box single-line" type="text" value="X" name="RegLaboral">
            @*@Html.EditorFor(model => model.RegLaboral,"true")*@
            @Html.ValidationMessageFor(model => model.RegLaboral)
        </div>
        <fieldset style="width:auto; float:left; margin-right:20px;"> <legend>Discapacidad</legend>
            <div class="editor-field">
                 @Html.RadioButtonFor(model => model.Discapacidad, "True", true)SI
                 @Html.RadioButtonFor(model => model.Discapacidad, "False", false)NO              
                 @Html.ValidationMessageFor(model => model.Discapacidad)
            </div>
        </fieldset>
        <fieldset style="width:auto; float:left;"> <legend>Essalud Vida</legend>
            <div class="editor-field">
                @Html.RadioButtonFor(model => model.SctrSalud, "S", true)SI
                @Html.RadioButtonFor(model => model.SctrSalud, "N", false)NO              
                @Html.ValidationMessageFor(model => model.SctrSalud)
            </div>
        </fieldset>

            <div class="editor-label" hidden = "hidden">
                @Html.LabelFor(model => model.TipoJornada)
            </div>
            <div class="editor-field" hidden = "hidden">
                <input id="TipoJornada" class="text-box single-line" type="text" value="X" name="TipoJornada">
                @*@Html.EditorFor(model => model.TipoJornada,"")*@
                @Html.ValidationMessageFor(model => model.TipoJornada)
            </div>

         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />
         <br />

        <fieldset style="width:50%; float:left"> <legend>Autoriza Descuento 5ta Categoria? </legend>
            <div class="editor-field">
                @Html.RadioButtonFor(model => model.InfQuinta, "N",true)NO
                @Html.RadioButtonFor(model => model.InfQuinta, "Q",true )15%    
                @Html.RadioButtonFor(model => model.InfQuinta, "V", true)21%              
                @Html.RadioButtonFor(model => model.InfQuinta, "T", false)30%                 
                @Html.ValidationMessageFor(model => model.InfQuinta)
            </div>
        </fieldset>
        <div class="editor-label" hidden="hidden">
            @Html.LabelFor(model => model.SituaEsp)
        </div>
        <div class="editor-field" hidden="hidden">
            <input id="SituaEsp" class="text-box single-line" type="text" value="X" name="SituaEsp">
            @*@Html.EditorFor(model => model.SituaEsp,"N")*@
            @Html.ValidationMessageFor(model => model.SituaEsp)
        </div>
        <fieldset> <legend>Tipo de Pago</legend> 
            <div class="editor-field">
                @Html.RadioButtonFor(model => model.TipoPago,"E",true)Efectivo
                @Html.RadioButtonFor(model => model.TipoPago,"D",false)Deposito en Cuenta
                @Html.ValidationMessageFor(model => model.TipoPago)
            </div>
        </fieldset>

        <div class="editor-label" hidden="hidden">
            @Html.LabelFor(model => model.Sindicalizado)
        </div>
        <div class="editor-field" hidden="hidden">
            <input id="Sindicalizado" class="text-box single-line" type="text" value="X" name="Sindicalizado">
            @*@Html.EditorFor(model => model.Sindicalizado,"N")*@
            @Html.ValidationMessageFor(model => model.Sindicalizado)
        </div>
        <fieldset> <legend>Régimen PEnsionario</legend>
            <div class="editor-field">
                @Html.DropDownList("IdRegPensionario")
                @Html.ValidationMessageFor(model => model.IdRegPensionario)
            </div>
        </fieldset>
        <p>
            <input type="submit" value="Create" />
        </p>
        </fieldset>

    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
